// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

// Ice version 3.3.0
// Generated from file `Integration.ice'

#ifndef __Integration_h__
#define __Integration_h__

#include <Ice/LocalObjectF.h>
#include <Ice/ProxyF.h>
#include <Ice/ObjectF.h>
#include <Ice/Exception.h>
#include <Ice/LocalObject.h>
#include <Ice/Proxy.h>
#include <Ice/Object.h>
#include <Ice/Outgoing.h>
#include <Ice/Incoming.h>
#include <Ice/Direct.h>
#include <Ice/UserExceptionFactory.h>
#include <Ice/FactoryTable.h>
#include <Ice/StreamF.h>
#include <Ice/UndefSysMacros.h>

#ifndef ICE_IGNORE_VERSION
#   if ICE_INT_VERSION / 100 != 303
#       error Ice version mismatch!
#   endif
#   if ICE_INT_VERSION % 100 > 50
#       error Beta header file detected
#   endif
#   if ICE_INT_VERSION % 100 < 0
#       error Ice patch level mismatch!
#   endif
#endif

namespace IceProxy
{

namespace CustomerRelationsManagement
{

class customer;

class order;

class CRM;

}

namespace Optimization
{

class OptimizationEngine;

}

namespace Tracking
{

class TrackingService;

}

}

namespace CustomerRelationsManagement
{

class customer;
bool operator==(const customer&, const customer&);
bool operator<(const customer&, const customer&);

class order;
bool operator==(const order&, const order&);
bool operator<(const order&, const order&);

class CRM;
bool operator==(const CRM&, const CRM&);
bool operator<(const CRM&, const CRM&);

}

namespace Optimization
{

class OptimizationEngine;
bool operator==(const OptimizationEngine&, const OptimizationEngine&);
bool operator<(const OptimizationEngine&, const OptimizationEngine&);

}

namespace Tracking
{

class TrackingService;
bool operator==(const TrackingService&, const TrackingService&);
bool operator<(const TrackingService&, const TrackingService&);

}

namespace IceInternal
{

::Ice::Object* upCast(::CustomerRelationsManagement::customer*);
::IceProxy::Ice::Object* upCast(::IceProxy::CustomerRelationsManagement::customer*);

::Ice::Object* upCast(::CustomerRelationsManagement::order*);
::IceProxy::Ice::Object* upCast(::IceProxy::CustomerRelationsManagement::order*);

::Ice::Object* upCast(::CustomerRelationsManagement::CRM*);
::IceProxy::Ice::Object* upCast(::IceProxy::CustomerRelationsManagement::CRM*);

::Ice::Object* upCast(::Optimization::OptimizationEngine*);
::IceProxy::Ice::Object* upCast(::IceProxy::Optimization::OptimizationEngine*);

::Ice::Object* upCast(::Tracking::TrackingService*);
::IceProxy::Ice::Object* upCast(::IceProxy::Tracking::TrackingService*);

}

namespace CustomerRelationsManagement
{

typedef ::IceInternal::Handle< ::CustomerRelationsManagement::customer> customerPtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::CustomerRelationsManagement::customer> customerPrx;

void __read(::IceInternal::BasicStream*, customerPrx&);
void __patch__customerPtr(void*, ::Ice::ObjectPtr&);

typedef ::IceInternal::Handle< ::CustomerRelationsManagement::order> orderPtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::CustomerRelationsManagement::order> orderPrx;

void __read(::IceInternal::BasicStream*, orderPrx&);
void __patch__orderPtr(void*, ::Ice::ObjectPtr&);

typedef ::IceInternal::Handle< ::CustomerRelationsManagement::CRM> CRMPtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::CustomerRelationsManagement::CRM> CRMPrx;

void __read(::IceInternal::BasicStream*, CRMPrx&);
void __patch__CRMPtr(void*, ::Ice::ObjectPtr&);

}

namespace Optimization
{

typedef ::IceInternal::Handle< ::Optimization::OptimizationEngine> OptimizationEnginePtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::Optimization::OptimizationEngine> OptimizationEnginePrx;

void __read(::IceInternal::BasicStream*, OptimizationEnginePrx&);
void __patch__OptimizationEnginePtr(void*, ::Ice::ObjectPtr&);

}

namespace Tracking
{

typedef ::IceInternal::Handle< ::Tracking::TrackingService> TrackingServicePtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::Tracking::TrackingService> TrackingServicePrx;

void __read(::IceInternal::BasicStream*, TrackingServicePrx&);
void __patch__TrackingServicePtr(void*, ::Ice::ObjectPtr&);

}

namespace CustomerRelationsManagement
{

class RecordNotFound : public ::Ice::UserException
{
public:

    RecordNotFound() {}
    RecordNotFound(::Ice::Int, const ::std::string&);
    virtual ~RecordNotFound() throw();

    virtual ::std::string ice_name() const;
    virtual ::Ice::Exception* ice_clone() const;
    virtual void ice_throw() const;

    static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();

    ::Ice::Int id;
    ::std::string name;

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

static RecordNotFound __RecordNotFound_init;

class DBError : public ::Ice::UserException
{
public:

    DBError() {}
    DBError(::Ice::Int, const ::std::string&);
    virtual ~DBError() throw();

    virtual ::std::string ice_name() const;
    virtual ::Ice::Exception* ice_clone() const;
    virtual void ice_throw() const;

    static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();

    ::Ice::Int errorCode;
    ::std::string errorText;

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

class RecordNotCommitted : public ::Ice::UserException
{
public:

    RecordNotCommitted() {}
    explicit RecordNotCommitted(::Ice::Byte);
    virtual ~RecordNotCommitted() throw();

    virtual ::std::string ice_name() const;
    virtual ::Ice::Exception* ice_clone() const;
    virtual void ice_throw() const;

    static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();

    ::Ice::Byte zero;

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

struct datetime
{
    ::Ice::Byte hour;
    ::Ice::Byte minute;
    ::Ice::Byte second;
    ::Ice::Byte day;
    ::Ice::Byte month;
    ::Ice::Short year;

    bool operator==(const datetime&) const;
    bool operator<(const datetime&) const;
    bool operator!=(const datetime& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const datetime& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const datetime& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const datetime& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

enum OrderStatus
{
    OPEN,
    DELIVERED
};

void __write(::IceInternal::BasicStream*, OrderStatus);
void __read(::IceInternal::BasicStream*, OrderStatus&);

typedef ::std::vector< ::CustomerRelationsManagement::orderPrx> OrderList;
void __writeOrderList(::IceInternal::BasicStream*, const ::CustomerRelationsManagement::orderPrx*, const ::CustomerRelationsManagement::orderPrx*);
void __readOrderList(::IceInternal::BasicStream*, OrderList&);

}

namespace Optimization
{

class OptimizationEngineBusy : public ::Ice::UserException
{
public:

    OptimizationEngineBusy() {}
    explicit OptimizationEngineBusy(::Ice::Byte);
    virtual ~OptimizationEngineBusy() throw();

    virtual ::std::string ice_name() const;
    virtual ::Ice::Exception* ice_clone() const;
    virtual void ice_throw() const;

    static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();

    ::Ice::Byte zero;

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

}

namespace Tracking
{

struct datetime
{
    ::Ice::Byte hour;
    ::Ice::Byte minute;
    ::Ice::Byte second;
    ::Ice::Byte day;
    ::Ice::Byte month;
    ::Ice::Short year;

    bool operator==(const datetime&) const;
    bool operator<(const datetime&) const;
    bool operator!=(const datetime& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const datetime& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const datetime& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const datetime& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

enum StopAction
{
    PICKUP,
    DELIVERY
};

void __write(::IceInternal::BasicStream*, StopAction);
void __read(::IceInternal::BasicStream*, StopAction&);

struct StopActionData
{
    ::Tracking::StopAction type;
    ::Ice::Int orderID;
    ::Ice::Int customerID;
    ::std::string src;
    ::std::string dst;
    ::Ice::Float weight;
    ::Tracking::datetime Deadline;

    bool operator==(const StopActionData&) const;
    bool operator<(const StopActionData&) const;
    bool operator!=(const StopActionData& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const StopActionData& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const StopActionData& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const StopActionData& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

typedef ::std::vector< ::Tracking::StopActionData> stopactionlist;
void __writestopactionlist(::IceInternal::BasicStream*, const ::Tracking::StopActionData*, const ::Tracking::StopActionData*);
void __readstopactionlist(::IceInternal::BasicStream*, stopactionlist&);

struct StopData
{
    ::std::string location;
    ::Tracking::stopactionlist actions;

    bool operator==(const StopData&) const;
    bool operator<(const StopData&) const;
    bool operator!=(const StopData& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const StopData& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const StopData& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const StopData& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

typedef ::std::vector< ::Tracking::StopData> stoplist;
void __writestoplist(::IceInternal::BasicStream*, const ::Tracking::StopData*, const ::Tracking::StopData*);
void __readstoplist(::IceInternal::BasicStream*, stoplist&);

struct TruckData
{
    ::std::string id;
    ::Ice::Float capacity;
    ::Tracking::stoplist stops;

    bool operator==(const TruckData&) const;
    bool operator<(const TruckData&) const;
    bool operator!=(const TruckData& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const TruckData& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const TruckData& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const TruckData& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

typedef ::std::vector< ::Tracking::TruckData> trucklist;
void __writetrucklist(::IceInternal::BasicStream*, const ::Tracking::TruckData*, const ::Tracking::TruckData*);
void __readtrucklist(::IceInternal::BasicStream*, trucklist&);

struct RouteData
{
    ::Tracking::trucklist Trucks;

    bool operator==(const RouteData&) const;
    bool operator<(const RouteData&) const;
    bool operator!=(const RouteData& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const RouteData& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const RouteData& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const RouteData& __rhs) const
    {
        return !operator<(__rhs);
    }

    void __write(::IceInternal::BasicStream*) const;
    void __read(::IceInternal::BasicStream*);
};

}

namespace IceProxy
{

namespace CustomerRelationsManagement
{

class customer : virtual public ::IceProxy::Ice::Object
{
public:

    ::Ice::Int getId()
    {
        return getId(0);
    }
    ::Ice::Int getId(const ::Ice::Context& __ctx)
    {
        return getId(&__ctx);
    }
    
private:

    ::Ice::Int getId(const ::Ice::Context*);
    
public:

    void save()
    {
        save(0);
    }
    void save(const ::Ice::Context& __ctx)
    {
        save(&__ctx);
    }
    
private:

    void save(const ::Ice::Context*);
    
public:

    void _cpp_delete()
    {
        _cpp_delete(0);
    }
    void _cpp_delete(const ::Ice::Context& __ctx)
    {
        _cpp_delete(&__ctx);
    }
    
private:

    void _cpp_delete(const ::Ice::Context*);
    
public:

    ::std::string getName()
    {
        return getName(0);
    }
    ::std::string getName(const ::Ice::Context& __ctx)
    {
        return getName(&__ctx);
    }
    
private:

    ::std::string getName(const ::Ice::Context*);
    
public:

    void setName(const ::std::string& name)
    {
        setName(name, 0);
    }
    void setName(const ::std::string& name, const ::Ice::Context& __ctx)
    {
        setName(name, &__ctx);
    }
    
private:

    void setName(const ::std::string&, const ::Ice::Context*);
    
public:
    
    ::IceInternal::ProxyHandle<customer> ice_context(const ::Ice::Context& __context) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_context(__context).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_context(__context).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_adapterId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_adapterId(__id).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_adapterId(__id).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_endpoints(__endpoints).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_locatorCacheTimeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_locatorCacheTimeout(__timeout).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_connectionCached(bool __cached) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_connectionCached(__cached).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_endpointSelection(::Ice::EndpointSelectionType __est) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_endpointSelection(__est).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_secure(bool __secure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_secure(__secure).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_secure(__secure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_preferSecure(bool __preferSecure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_preferSecure(__preferSecure).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_router(const ::Ice::RouterPrx& __router) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_router(__router).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_router(__router).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_locator(const ::Ice::LocatorPrx& __locator) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_locator(__locator).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_locator(__locator).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_collocationOptimized(bool __co) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_collocationOptimized(__co).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_twoway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_twoway().get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_twoway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_oneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_oneway().get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_oneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_batchOneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_batchOneway().get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_batchOneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_datagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_datagram().get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_datagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_batchDatagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_batchDatagram().get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_compress(bool __compress) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_compress(__compress).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_compress(__compress).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_timeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_timeout(__timeout).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<customer> ice_connectionId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<customer*>(_Base::ice_connectionId(__id).get());
    #else
        return dynamic_cast<customer*>(::IceProxy::Ice::Object::ice_connectionId(__id).get());
    #endif
    }
    
    static const ::std::string& ice_staticId();

private: 

    virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM();
    virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD();
    virtual ::IceProxy::Ice::Object* __newInstance() const;
};

class order : virtual public ::IceProxy::Ice::Object
{
public:

    ::Ice::Int getId()
    {
        return getId(0);
    }
    ::Ice::Int getId(const ::Ice::Context& __ctx)
    {
        return getId(&__ctx);
    }
    
private:

    ::Ice::Int getId(const ::Ice::Context*);
    
public:

    void save()
    {
        save(0);
    }
    void save(const ::Ice::Context& __ctx)
    {
        save(&__ctx);
    }
    
private:

    void save(const ::Ice::Context*);
    
public:

    void _cpp_delete()
    {
        _cpp_delete(0);
    }
    void _cpp_delete(const ::Ice::Context& __ctx)
    {
        _cpp_delete(&__ctx);
    }
    
private:

    void _cpp_delete(const ::Ice::Context*);
    
public:

    ::Ice::Int getCustomer()
    {
        return getCustomer(0);
    }
    ::Ice::Int getCustomer(const ::Ice::Context& __ctx)
    {
        return getCustomer(&__ctx);
    }
    
private:

    ::Ice::Int getCustomer(const ::Ice::Context*);
    
public:

    void setCustomer(::Ice::Int CustomerId)
    {
        setCustomer(CustomerId, 0);
    }
    void setCustomer(::Ice::Int CustomerId, const ::Ice::Context& __ctx)
    {
        setCustomer(CustomerId, &__ctx);
    }
    
private:

    void setCustomer(::Ice::Int, const ::Ice::Context*);
    
public:

    ::std::string getSrc()
    {
        return getSrc(0);
    }
    ::std::string getSrc(const ::Ice::Context& __ctx)
    {
        return getSrc(&__ctx);
    }
    
private:

    ::std::string getSrc(const ::Ice::Context*);
    
public:

    ::std::string getDst()
    {
        return getDst(0);
    }
    ::std::string getDst(const ::Ice::Context& __ctx)
    {
        return getDst(&__ctx);
    }
    
private:

    ::std::string getDst(const ::Ice::Context*);
    
public:

    void setSrc(const ::std::string& src)
    {
        setSrc(src, 0);
    }
    void setSrc(const ::std::string& src, const ::Ice::Context& __ctx)
    {
        setSrc(src, &__ctx);
    }
    
private:

    void setSrc(const ::std::string&, const ::Ice::Context*);
    
public:

    void setDst(const ::std::string& dst)
    {
        setDst(dst, 0);
    }
    void setDst(const ::std::string& dst, const ::Ice::Context& __ctx)
    {
        setDst(dst, &__ctx);
    }
    
private:

    void setDst(const ::std::string&, const ::Ice::Context*);
    
public:

    ::Ice::Float getWeight()
    {
        return getWeight(0);
    }
    ::Ice::Float getWeight(const ::Ice::Context& __ctx)
    {
        return getWeight(&__ctx);
    }
    
private:

    ::Ice::Float getWeight(const ::Ice::Context*);
    
public:

    void setWeight(::Ice::Float weight)
    {
        setWeight(weight, 0);
    }
    void setWeight(::Ice::Float weight, const ::Ice::Context& __ctx)
    {
        setWeight(weight, &__ctx);
    }
    
private:

    void setWeight(::Ice::Float, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::datetime getDeadline()
    {
        return getDeadline(0);
    }
    ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Context& __ctx)
    {
        return getDeadline(&__ctx);
    }
    
private:

    ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Context*);
    
public:

    void setDeadline(const ::CustomerRelationsManagement::datetime& deadline)
    {
        setDeadline(deadline, 0);
    }
    void setDeadline(const ::CustomerRelationsManagement::datetime& deadline, const ::Ice::Context& __ctx)
    {
        setDeadline(deadline, &__ctx);
    }
    
private:

    void setDeadline(const ::CustomerRelationsManagement::datetime&, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::OrderStatus getStatus()
    {
        return getStatus(0);
    }
    ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Context& __ctx)
    {
        return getStatus(&__ctx);
    }
    
private:

    ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Context*);
    
public:

    void setStatus(::CustomerRelationsManagement::OrderStatus status)
    {
        setStatus(status, 0);
    }
    void setStatus(::CustomerRelationsManagement::OrderStatus status, const ::Ice::Context& __ctx)
    {
        setStatus(status, &__ctx);
    }
    
private:

    void setStatus(::CustomerRelationsManagement::OrderStatus, const ::Ice::Context*);
    
public:
    
    ::IceInternal::ProxyHandle<order> ice_context(const ::Ice::Context& __context) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_context(__context).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_context(__context).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_adapterId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_adapterId(__id).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_adapterId(__id).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_endpoints(__endpoints).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_locatorCacheTimeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_locatorCacheTimeout(__timeout).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_connectionCached(bool __cached) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_connectionCached(__cached).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_endpointSelection(::Ice::EndpointSelectionType __est) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_endpointSelection(__est).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_secure(bool __secure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_secure(__secure).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_secure(__secure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_preferSecure(bool __preferSecure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_preferSecure(__preferSecure).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_router(const ::Ice::RouterPrx& __router) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_router(__router).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_router(__router).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_locator(const ::Ice::LocatorPrx& __locator) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_locator(__locator).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_locator(__locator).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_collocationOptimized(bool __co) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_collocationOptimized(__co).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_twoway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_twoway().get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_twoway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_oneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_oneway().get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_oneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_batchOneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_batchOneway().get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_batchOneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_datagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_datagram().get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_datagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_batchDatagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_batchDatagram().get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_compress(bool __compress) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_compress(__compress).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_compress(__compress).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_timeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_timeout(__timeout).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<order> ice_connectionId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<order*>(_Base::ice_connectionId(__id).get());
    #else
        return dynamic_cast<order*>(::IceProxy::Ice::Object::ice_connectionId(__id).get());
    #endif
    }
    
    static const ::std::string& ice_staticId();

private: 

    virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM();
    virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD();
    virtual ::IceProxy::Ice::Object* __newInstance() const;
};

class CRM : virtual public ::IceProxy::Ice::Object
{
public:

    ::CustomerRelationsManagement::customerPrx CreateCustomer()
    {
        return CreateCustomer(0);
    }
    ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Context& __ctx)
    {
        return CreateCustomer(&__ctx);
    }
    
private:

    ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string& CustName)
    {
        return LoadCustomerByName(CustName, 0);
    }
    ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string& CustName, const ::Ice::Context& __ctx)
    {
        return LoadCustomerByName(CustName, &__ctx);
    }
    
private:

    ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string&, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int CustId)
    {
        return LoadCustomerById(CustId, 0);
    }
    ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int CustId, const ::Ice::Context& __ctx)
    {
        return LoadCustomerById(CustId, &__ctx);
    }
    
private:

    ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::orderPrx CreateOrder()
    {
        return CreateOrder(0);
    }
    ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Context& __ctx)
    {
        return CreateOrder(&__ctx);
    }
    
private:

    ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int OrderId)
    {
        return LoadOrderById(OrderId, 0);
    }
    ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int OrderId, const ::Ice::Context& __ctx)
    {
        return LoadOrderById(OrderId, &__ctx);
    }
    
private:

    ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int CustId)
    {
        return LoadOrderByCustomer(CustId, 0);
    }
    ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int CustId, const ::Ice::Context& __ctx)
    {
        return LoadOrderByCustomer(CustId, &__ctx);
    }
    
private:

    ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int, const ::Ice::Context*);
    
public:

    ::CustomerRelationsManagement::OrderList LoadNewOrders()
    {
        return LoadNewOrders(0);
    }
    ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Context& __ctx)
    {
        return LoadNewOrders(&__ctx);
    }
    
private:

    ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Context*);
    
public:
    
    ::IceInternal::ProxyHandle<CRM> ice_context(const ::Ice::Context& __context) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_context(__context).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_context(__context).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_adapterId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_adapterId(__id).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_adapterId(__id).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_endpoints(__endpoints).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_locatorCacheTimeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_locatorCacheTimeout(__timeout).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_connectionCached(bool __cached) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_connectionCached(__cached).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_endpointSelection(::Ice::EndpointSelectionType __est) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_endpointSelection(__est).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_secure(bool __secure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_secure(__secure).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_secure(__secure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_preferSecure(bool __preferSecure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_preferSecure(__preferSecure).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_router(const ::Ice::RouterPrx& __router) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_router(__router).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_router(__router).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_locator(const ::Ice::LocatorPrx& __locator) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_locator(__locator).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_locator(__locator).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_collocationOptimized(bool __co) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_collocationOptimized(__co).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_twoway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_twoway().get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_twoway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_oneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_oneway().get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_oneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_batchOneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_batchOneway().get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_batchOneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_datagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_datagram().get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_datagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_batchDatagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_batchDatagram().get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_compress(bool __compress) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_compress(__compress).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_compress(__compress).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_timeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_timeout(__timeout).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<CRM> ice_connectionId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<CRM*>(_Base::ice_connectionId(__id).get());
    #else
        return dynamic_cast<CRM*>(::IceProxy::Ice::Object::ice_connectionId(__id).get());
    #endif
    }
    
    static const ::std::string& ice_staticId();

private: 

    virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM();
    virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD();
    virtual ::IceProxy::Ice::Object* __newInstance() const;
};

}

namespace Optimization
{

class OptimizationEngine : virtual public ::IceProxy::Ice::Object
{
public:

    void runTest()
    {
        runTest(0);
    }
    void runTest(const ::Ice::Context& __ctx)
    {
        runTest(&__ctx);
    }
    
private:

    void runTest(const ::Ice::Context*);
    
public:
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_context(const ::Ice::Context& __context) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_context(__context).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_context(__context).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_adapterId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_adapterId(__id).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_adapterId(__id).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_endpoints(__endpoints).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_locatorCacheTimeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_locatorCacheTimeout(__timeout).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_connectionCached(bool __cached) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_connectionCached(__cached).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_endpointSelection(::Ice::EndpointSelectionType __est) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_endpointSelection(__est).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_secure(bool __secure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_secure(__secure).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_secure(__secure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_preferSecure(bool __preferSecure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_preferSecure(__preferSecure).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_router(const ::Ice::RouterPrx& __router) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_router(__router).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_router(__router).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_locator(const ::Ice::LocatorPrx& __locator) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_locator(__locator).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_locator(__locator).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_collocationOptimized(bool __co) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_collocationOptimized(__co).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_twoway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_twoway().get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_twoway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_oneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_oneway().get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_oneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_batchOneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_batchOneway().get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_batchOneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_datagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_datagram().get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_datagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_batchDatagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_batchDatagram().get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_compress(bool __compress) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_compress(__compress).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_compress(__compress).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_timeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_timeout(__timeout).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<OptimizationEngine> ice_connectionId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<OptimizationEngine*>(_Base::ice_connectionId(__id).get());
    #else
        return dynamic_cast<OptimizationEngine*>(::IceProxy::Ice::Object::ice_connectionId(__id).get());
    #endif
    }
    
    static const ::std::string& ice_staticId();

private: 

    virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM();
    virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD();
    virtual ::IceProxy::Ice::Object* __newInstance() const;
};

}

namespace Tracking
{

class TrackingService : virtual public ::IceProxy::Ice::Object
{
public:

    ::Tracking::RouteData getAllData()
    {
        return getAllData(0);
    }
    ::Tracking::RouteData getAllData(const ::Ice::Context& __ctx)
    {
        return getAllData(&__ctx);
    }
    
private:

    ::Tracking::RouteData getAllData(const ::Ice::Context*);
    
public:

    void postNewRoutes(const ::Tracking::RouteData& nrd)
    {
        postNewRoutes(nrd, 0);
    }
    void postNewRoutes(const ::Tracking::RouteData& nrd, const ::Ice::Context& __ctx)
    {
        postNewRoutes(nrd, &__ctx);
    }
    
private:

    void postNewRoutes(const ::Tracking::RouteData&, const ::Ice::Context*);
    
public:
    
    ::IceInternal::ProxyHandle<TrackingService> ice_context(const ::Ice::Context& __context) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_context(__context).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_context(__context).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_adapterId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_adapterId(__id).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_adapterId(__id).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_endpoints(__endpoints).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_locatorCacheTimeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_locatorCacheTimeout(__timeout).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_connectionCached(bool __cached) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_connectionCached(__cached).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_endpointSelection(::Ice::EndpointSelectionType __est) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_endpointSelection(__est).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_secure(bool __secure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_secure(__secure).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_secure(__secure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_preferSecure(bool __preferSecure) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_preferSecure(__preferSecure).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_router(const ::Ice::RouterPrx& __router) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_router(__router).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_router(__router).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_locator(const ::Ice::LocatorPrx& __locator) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_locator(__locator).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_locator(__locator).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_collocationOptimized(bool __co) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_collocationOptimized(__co).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_twoway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_twoway().get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_twoway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_oneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_oneway().get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_oneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_batchOneway() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_batchOneway().get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_batchOneway().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_datagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_datagram().get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_datagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_batchDatagram() const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_batchDatagram().get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_batchDatagram().get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_compress(bool __compress) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_compress(__compress).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_compress(__compress).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_timeout(int __timeout) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_timeout(__timeout).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get());
    #endif
    }
    
    ::IceInternal::ProxyHandle<TrackingService> ice_connectionId(const std::string& __id) const
    {
    #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug
        typedef ::IceProxy::Ice::Object _Base;
        return dynamic_cast<TrackingService*>(_Base::ice_connectionId(__id).get());
    #else
        return dynamic_cast<TrackingService*>(::IceProxy::Ice::Object::ice_connectionId(__id).get());
    #endif
    }
    
    static const ::std::string& ice_staticId();

private: 

    virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM();
    virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD();
    virtual ::IceProxy::Ice::Object* __newInstance() const;
};

}

}

namespace IceDelegate
{

namespace CustomerRelationsManagement
{

class customer : virtual public ::IceDelegate::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*) = 0;

    virtual void save(const ::Ice::Context*) = 0;

    virtual void _cpp_delete(const ::Ice::Context*) = 0;

    virtual ::std::string getName(const ::Ice::Context*) = 0;

    virtual void setName(const ::std::string&, const ::Ice::Context*) = 0;
};

class order : virtual public ::IceDelegate::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*) = 0;

    virtual void save(const ::Ice::Context*) = 0;

    virtual void _cpp_delete(const ::Ice::Context*) = 0;

    virtual ::Ice::Int getCustomer(const ::Ice::Context*) = 0;

    virtual void setCustomer(::Ice::Int, const ::Ice::Context*) = 0;

    virtual ::std::string getSrc(const ::Ice::Context*) = 0;

    virtual ::std::string getDst(const ::Ice::Context*) = 0;

    virtual void setSrc(const ::std::string&, const ::Ice::Context*) = 0;

    virtual void setDst(const ::std::string&, const ::Ice::Context*) = 0;

    virtual ::Ice::Float getWeight(const ::Ice::Context*) = 0;

    virtual void setWeight(::Ice::Float, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Context*) = 0;

    virtual void setDeadline(const ::CustomerRelationsManagement::datetime&, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Context*) = 0;

    virtual void setStatus(::CustomerRelationsManagement::OrderStatus, const ::Ice::Context*) = 0;
};

class CRM : virtual public ::IceDelegate::Ice::Object
{
public:

    virtual ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string&, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int, const ::Ice::Context*) = 0;

    virtual ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Context*) = 0;
};

}

namespace Optimization
{

class OptimizationEngine : virtual public ::IceDelegate::Ice::Object
{
public:

    virtual void runTest(const ::Ice::Context*) = 0;
};

}

namespace Tracking
{

class TrackingService : virtual public ::IceDelegate::Ice::Object
{
public:

    virtual ::Tracking::RouteData getAllData(const ::Ice::Context*) = 0;

    virtual void postNewRoutes(const ::Tracking::RouteData&, const ::Ice::Context*) = 0;
};

}

}

namespace IceDelegateM
{

namespace CustomerRelationsManagement
{

class customer : virtual public ::IceDelegate::CustomerRelationsManagement::customer,
                 virtual public ::IceDelegateM::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*);

    virtual void save(const ::Ice::Context*);

    virtual void _cpp_delete(const ::Ice::Context*);

    virtual ::std::string getName(const ::Ice::Context*);

    virtual void setName(const ::std::string&, const ::Ice::Context*);
};

class order : virtual public ::IceDelegate::CustomerRelationsManagement::order,
              virtual public ::IceDelegateM::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*);

    virtual void save(const ::Ice::Context*);

    virtual void _cpp_delete(const ::Ice::Context*);

    virtual ::Ice::Int getCustomer(const ::Ice::Context*);

    virtual void setCustomer(::Ice::Int, const ::Ice::Context*);

    virtual ::std::string getSrc(const ::Ice::Context*);

    virtual ::std::string getDst(const ::Ice::Context*);

    virtual void setSrc(const ::std::string&, const ::Ice::Context*);

    virtual void setDst(const ::std::string&, const ::Ice::Context*);

    virtual ::Ice::Float getWeight(const ::Ice::Context*);

    virtual void setWeight(::Ice::Float, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Context*);

    virtual void setDeadline(const ::CustomerRelationsManagement::datetime&, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Context*);

    virtual void setStatus(::CustomerRelationsManagement::OrderStatus, const ::Ice::Context*);
};

class CRM : virtual public ::IceDelegate::CustomerRelationsManagement::CRM,
            virtual public ::IceDelegateM::Ice::Object
{
public:

    virtual ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string&, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Context*);
};

}

namespace Optimization
{

class OptimizationEngine : virtual public ::IceDelegate::Optimization::OptimizationEngine,
                           virtual public ::IceDelegateM::Ice::Object
{
public:

    virtual void runTest(const ::Ice::Context*);
};

}

namespace Tracking
{

class TrackingService : virtual public ::IceDelegate::Tracking::TrackingService,
                        virtual public ::IceDelegateM::Ice::Object
{
public:

    virtual ::Tracking::RouteData getAllData(const ::Ice::Context*);

    virtual void postNewRoutes(const ::Tracking::RouteData&, const ::Ice::Context*);
};

}

}

namespace IceDelegateD
{

namespace CustomerRelationsManagement
{

class customer : virtual public ::IceDelegate::CustomerRelationsManagement::customer,
                 virtual public ::IceDelegateD::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*);

    virtual void save(const ::Ice::Context*);

    virtual void _cpp_delete(const ::Ice::Context*);

    virtual ::std::string getName(const ::Ice::Context*);

    virtual void setName(const ::std::string&, const ::Ice::Context*);
};

class order : virtual public ::IceDelegate::CustomerRelationsManagement::order,
              virtual public ::IceDelegateD::Ice::Object
{
public:

    virtual ::Ice::Int getId(const ::Ice::Context*);

    virtual void save(const ::Ice::Context*);

    virtual void _cpp_delete(const ::Ice::Context*);

    virtual ::Ice::Int getCustomer(const ::Ice::Context*);

    virtual void setCustomer(::Ice::Int, const ::Ice::Context*);

    virtual ::std::string getSrc(const ::Ice::Context*);

    virtual ::std::string getDst(const ::Ice::Context*);

    virtual void setSrc(const ::std::string&, const ::Ice::Context*);

    virtual void setDst(const ::std::string&, const ::Ice::Context*);

    virtual ::Ice::Float getWeight(const ::Ice::Context*);

    virtual void setWeight(::Ice::Float, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Context*);

    virtual void setDeadline(const ::CustomerRelationsManagement::datetime&, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Context*);

    virtual void setStatus(::CustomerRelationsManagement::OrderStatus, const ::Ice::Context*);
};

class CRM : virtual public ::IceDelegate::CustomerRelationsManagement::CRM,
            virtual public ::IceDelegateD::Ice::Object
{
public:

    virtual ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string&, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int, const ::Ice::Context*);

    virtual ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Context*);
};

}

namespace Optimization
{

class OptimizationEngine : virtual public ::IceDelegate::Optimization::OptimizationEngine,
                           virtual public ::IceDelegateD::Ice::Object
{
public:

    virtual void runTest(const ::Ice::Context*);
};

}

namespace Tracking
{

class TrackingService : virtual public ::IceDelegate::Tracking::TrackingService,
                        virtual public ::IceDelegateD::Ice::Object
{
public:

    virtual ::Tracking::RouteData getAllData(const ::Ice::Context*);

    virtual void postNewRoutes(const ::Tracking::RouteData&, const ::Ice::Context*);
};

}

}

namespace CustomerRelationsManagement
{

class customer : virtual public ::Ice::Object
{
public:

    typedef customerPrx ProxyType;
    typedef customerPtr PointerType;
    
    virtual ::Ice::ObjectPtr ice_clone() const;

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual ::Ice::Int getId(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getId(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void save(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___save(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void _cpp_delete(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___delete(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::std::string getName(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getName(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setName(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setName(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

class order : virtual public ::Ice::Object
{
public:

    typedef orderPrx ProxyType;
    typedef orderPtr PointerType;
    
    virtual ::Ice::ObjectPtr ice_clone() const;

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual ::Ice::Int getId(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getId(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void save(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___save(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void _cpp_delete(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___delete(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::Int getCustomer(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getCustomer(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setCustomer(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setCustomer(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::std::string getSrc(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getSrc(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::std::string getDst(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getDst(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setSrc(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setSrc(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setDst(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setDst(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::Float getWeight(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getWeight(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setWeight(::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setWeight(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::datetime getDeadline(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getDeadline(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setDeadline(const ::CustomerRelationsManagement::datetime&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setDeadline(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::OrderStatus getStatus(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getStatus(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void setStatus(::CustomerRelationsManagement::OrderStatus, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___setStatus(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

class CRM : virtual public ::Ice::Object
{
public:

    typedef CRMPrx ProxyType;
    typedef CRMPtr PointerType;
    
    virtual ::Ice::ObjectPtr ice_clone() const;

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual ::CustomerRelationsManagement::customerPrx CreateCustomer(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___CreateCustomer(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerByName(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___LoadCustomerByName(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::customerPrx LoadCustomerById(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___LoadCustomerById(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::orderPrx CreateOrder(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___CreateOrder(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::orderPrx LoadOrderById(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___LoadOrderById(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::OrderList LoadOrderByCustomer(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___LoadOrderByCustomer(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::CustomerRelationsManagement::OrderList LoadNewOrders(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___LoadNewOrders(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

}

namespace Optimization
{

class OptimizationEngine : virtual public ::Ice::Object
{
public:

    typedef OptimizationEnginePrx ProxyType;
    typedef OptimizationEnginePtr PointerType;
    
    virtual ::Ice::ObjectPtr ice_clone() const;

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual void runTest(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___runTest(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

}

namespace Tracking
{

class TrackingService : virtual public ::Ice::Object
{
public:

    typedef TrackingServicePrx ProxyType;
    typedef TrackingServicePtr PointerType;
    
    virtual ::Ice::ObjectPtr ice_clone() const;

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual ::Tracking::RouteData getAllData(const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___getAllData(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void postNewRoutes(const ::Tracking::RouteData&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::Ice::DispatchStatus ___postNewRoutes(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
};

}

#endif
